-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add http service to send email for shares #3304
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
JFYI: there is already an event based solution available https://github.com/owncloud/ocis/tree/master/services/notifications |
@micbar thanks, that is the next step. We have already a NATS cluster and we plan to create the hooks with the same payload as you have in edge so the transition will be easier. |
This PR adds an http service, exposed by default under
/mailer
, that for a given list of share ids, will send the email to the recipient of these shares.Example:
curl -X POST localhost:9143/mailer -u <user> -d "id=<share_id>"
{"recipients":["<email>"]}